Skip to content

docs: document the ping utility with examples - #1106

Merged
alexhancock merged 1 commit into
mainfrom
alexhancock/document-ping-utility
Jul 31, 2026
Merged

docs: document the ping utility with examples#1106
alexhancock merged 1 commit into
mainfrom
alexhancock/document-ping-utility

Conversation

@alexhancock

Copy link
Copy Markdown
Contributor

What

Adds a Ping section to the README, covering both directions of the ping utility:

  • Sending a ping — constructing a PingRequest and sending it via send_request (client→server and server→client), with a note that a returned Ok confirms the peer is reachable.
  • Responding to a ping — explains that rmcp answers incoming pings automatically via the default ping handler, with an example of overriding it for custom liveness logic.
  • Links to the MCP ping spec.

Why

Ping was the only non-experimental feature lacking user-facing documentation and an example. Every other feature in the SDK's supported surface is already documented with examples; this closes the remaining gap.

Notes

Documentation-only change (README). The code examples use the existing public API (PingRequest, ClientRequest/ServerRequest, send_request, and the ServerHandler/ClientHandler ping method).

Add a Ping section to the README covering both directions of the
utility: constructing and sending a PingRequest via send_request, and
the automatic default handler response (with an override example for
custom liveness logic). Links to the MCP ping spec.

Ping was the only non-experimental feature lacking user-facing
documentation and an example.
@alexhancock
alexhancock requested a review from a team as a code owner July 31, 2026 00:52
@github-actions github-actions Bot added the T-documentation Documentation improvements label Jul 31, 2026
@alexhancock
alexhancock merged commit 1cf6deb into main Jul 31, 2026
22 checks passed
@alexhancock
alexhancock deleted the alexhancock/document-ping-utility branch July 31, 2026 14:02
@github-actions github-actions Bot mentioned this pull request Jul 31, 2026
howardjohn pushed a commit to agentgateway/agentgateway that referenced this pull request Jul 31, 2026
Bump to latest stable release
https://github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v3.1.0

```
Added
classify authorization-required errors (modelcontextprotocol/rust-sdk#1056)
add strict stateless protocol metadata validation (modelcontextprotocol/rust-sdk#1091)
SEP-2260 stream-based enforcement of client receive-side request association (modelcontextprotocol/rust-sdk#1055)
Fixed
(model) decode metadata-bearing input-required results affecting mrtr (modelcontextprotocol/rust-sdk#1097)
require metadata for modern HTTP requests (modelcontextprotocol/rust-sdk#1089)
honor supported_protocol_versions when negotiating initialize (modelcontextprotocol/rust-sdk#1093)
Other
document the ping utility with examples (modelcontextprotocol/rust-sdk#1106)
complete Tier 1 feature docs and finalize roadmap (modelcontextprotocol/rust-sdk#1101)
(conformance) meeting requirements for tier 1 (modelcontextprotocol/rust-sdk#1087)
```

Signed-off-by: Filinto Duran <1373693+filintod@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-documentation Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants